package com.zkthink.clh.order.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zkthink.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 功能价格设置表
 * </p>
 *
 * @author chenke
 * @since 2022-04-24
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("chl_config")
@ApiModel(value = "ChlConfig", description = "功能价格设置表")
@AllArgsConstructor
public class ChlConfig extends Entity<Long> {

    private static final long serialVersionUID = 1L;


    /**
     * 参数名称
     */
    @ApiModelProperty(value = "参数名称")
    @Length(max = 255, message = "参数名称长度不能超过255")
    @TableField(value = "parameter_name", condition = LIKE)
    @Excel(name = "参数名称")
    private String parameterName;

    /**
     * 参数描述
     */
    @ApiModelProperty(value = "参数描述")
    @Length(max = 255, message = "参数描述长度不能超过255")
    @TableField(value = "parameter_desc", condition = LIKE)
    @Excel(name = "参数描述")
    private String parameterDesc;

    /**
     * 参数值
     */
    @ApiModelProperty(value = "参数值")
    @Length(max = 255, message = "参数值长度不能超过255")
    @TableField(value = "parameter_value", condition = LIKE)
    @Excel(name = "参数值")
    private BigDecimal parameterValue;

    /**
     * 参数唯一标识
     */
    @ApiModelProperty(value = "参数唯一标识")
    @NotEmpty(message = "参数唯一标识不能为空")
    @Length(max = 255, message = "参数唯一标识长度不能超过255")
    @TableField(value = "parameter_unique", condition = LIKE)
    @Excel(name = "参数唯一标识")
    private String parameterUnique;


    /**
     *0=使用 1=不使用
     */
    @Length(max = 255, message = "0=使用 1=不使用")
    @TableField(value = "parameter_type", condition = LIKE)
    private String parameterType;

}
